Skip to content

NO-JIRA: OVNK BGP: improve debug and increase NNCP timeout for VRF-Lite test case#31022

Merged
openshift-merge-bot[bot] merged 2 commits intoopenshift:mainfrom
jcaamano:improve-vrf-lite
Apr 17, 2026
Merged

NO-JIRA: OVNK BGP: improve debug and increase NNCP timeout for VRF-Lite test case#31022
openshift-merge-bot[bot] merged 2 commits intoopenshift:mainfrom
jcaamano:improve-vrf-lite

Conversation

@jcaamano
Copy link
Copy Markdown
Contributor

@jcaamano jcaamano commented Apr 16, 2026

Summary by CodeRabbit

  • Bug Fixes

    • Prevented redundant debug data collection during test failures to improve reliability.
    • Improved labeling of network configuration debug output for clearer diagnostics.
  • Chores

    • Increased timeout for network configuration application to reduce flakiness.
    • Simplified internal test helpers to streamline test maintenance.

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: automatic mode

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 16, 2026

Walkthrough

Refactors test debug gathering to run once per test using sync.Once, updates gatherDebugInfo signature (removes worker node names), increases an NNCP apply timeout from 300s to 600s, and changes a debug log label for one section.

Changes

Cohort / File(s) Summary
Test: route_advertisements.go
test/extended/networking/route_advertisements.go
Added sync.Once guard (gatherDebugInfoOnce) and wrapper (doGatherDebugInfoOnce) so debug collection runs at most once; g.JustAfterEach and VRF-Lite cleanup now call the wrapper on spec failure; removed workerNodesOrderedNames []string parameter from gatherDebugInfo; increased applyNNCP timeout from 300s600s; changed debug log label for frrnodestates from FrrNodeStates to NodeNetworkConfigurationPolicies.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 9 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (9 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Stable And Deterministic Test Names ✅ Passed File is a helper utility for test infrastructure, not containing Ginkgo test definitions. Changes modify helper functions only, introducing no dynamic test titles.
Test Structure And Quality ✅ Passed Test file demonstrates solid quality practices with proper Ginkgo patterns, appropriate timeouts, sync.Once guard for debug collection, and meaningful test structure.
Microshift Test Compatibility ✅ Passed PR only modifies test infrastructure and helper functions without adding new Ginkgo e2e tests, and existing tests already have proper MicroShift protection mechanisms.
Single Node Openshift (Sno) Test Compatibility ✅ Passed This pull request does not add new Ginkgo e2e tests. It only modifies existing test utilities and helper functions in the route_advertisements.go file. The existing tests in this file are already protected from running on Single Node OpenShift through an explicit check requiring a minimum of 3 worker nodes, which ensures the tests will be skipped on SNO deployments.
Topology-Aware Scheduling Compatibility ✅ Passed The PR modifies only test/extended/networking/route_advertisements.go, a test file with no scheduling constraints, pod affinity rules, nodeSelectors, or topology-related configurations.
Ote Binary Stdout Contract ✅ Passed The pull request modifies test helper functions and adds test-level callbacks without introducing any process-level stdout writes. All logging uses framework.Logf(), which is intercepted by Ginkgo.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed This PR modifies existing test infrastructure (sync.Once guard, timeout adjustment, debug log labels) without adding new Ginkgo e2e tests, so no IPv4 assumptions or external connectivity issues are introduced.
Title check ✅ Passed The title clearly and specifically describes the main changes: improving debug functionality and increasing NNCP timeout for the VRF-Lite test case, which directly match the implemented changes.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 16, 2026
@openshift-ci openshift-ci bot requested review from pperiyasamy and tssurya April 16, 2026 17:57
@jcaamano
Copy link
Copy Markdown
Contributor Author

/testwith openshift/kubernetes/master/e2e-metal-ipi-ovn-dualstack-bgp-local-gw-techpreview-frr-next openshift/ovn-kubernetes#2975

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 16, 2026

@jcaamano, testwith: could not generate prow job. ERROR:

BUG: test 'e2e-metal-ipi-ovn-dualstack-bgp-local-gw-techpreview-frr-next' not found in injected config

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@test/extended/networking/route_advertisements.go`:
- Around line 142-149: The sync.Once variable gatherDebugInfoOnce is declared in
the Describe closure and therefore persists across specs, causing debug
gathering to be suppressed after the first failure; reset it at the start of
each spec by reinitializing gatherDebugInfoOnce = sync.Once{} inside the
per-spec setup (e.g., a BeforeEach or at beginning of the It/Specify) so
doGatherDebugInfoOnce and its call to gatherDebugInfo only dedupe within a
single spec rather than across the entire Describe.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 7e83441e-f9f9-46b3-935d-1d5eab40b9e3

📥 Commits

Reviewing files that changed from the base of the PR and between d7ad0db and 4ca25a0.

📒 Files selected for processing (1)
  • test/extended/networking/route_advertisements.go

Comment thread test/extended/networking/route_advertisements.go
Signed-off-by: Jaime Caamaño Ruiz <jcaamano@redhat.com>
Signed-off-by: Jaime Caamaño Ruiz <jcaamano@redhat.com>
@jcaamano
Copy link
Copy Markdown
Contributor Author

/payload-job-with-prs periodic-ci-openshift-ovn-kubernetes-release-5.0-periodics-e2e-metal-ipi-ovn-dualstack-bgp-local-gw-techpreview-frr-next openshift/ovn-kubernetes#2975

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 16, 2026

@jcaamano: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-ovn-kubernetes-release-5.0-periodics-e2e-metal-ipi-ovn-dualstack-bgp-local-gw-techpreview-frr-next

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/546a37a0-39bf-11f1-9ba6-96af8f78063c-0

@jcaamano
Copy link
Copy Markdown
Contributor Author

/test ?

@jcaamano
Copy link
Copy Markdown
Contributor Author

/test e2e-metal-ipi-ovn-dualstack-bgp-local-gw

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

Scheduling required tests:
/test e2e-aws-csi
/test e2e-aws-ovn-fips
/test e2e-aws-ovn-microshift
/test e2e-aws-ovn-microshift-serial
/test e2e-aws-ovn-serial-1of2
/test e2e-aws-ovn-serial-2of2
/test e2e-gcp-csi
/test e2e-gcp-ovn
/test e2e-gcp-ovn-upgrade
/test e2e-metal-ipi-ovn-ipv6
/test e2e-vsphere-ovn
/test e2e-vsphere-ovn-upi

@jcaamano
Copy link
Copy Markdown
Contributor Author

/testwith openshift/ovn-kubernetes/master/e2e-metal-ipi-ovn-dualstack-bgp-local-gw-techpreview-frr-next openshift/ovn-kubernetes#2975

@jcaamano
Copy link
Copy Markdown
Contributor Author

/testwith openshift/ovn-kubernetes/master/e2e-metal-ipi-ovn-dualstack-bgp-local-gw-techpreview-frr-next openshift/ovn-kubernetes#2975 openshift/cluster-network-operator#2945
/testwith openshift/ovn-kubernetes/master/e2e-metal-ipi-ovn-dualstack-bgp-local-gw openshift/ovn-kubernetes#2975 openshift/cluster-network-operator#2945

1 similar comment
@pperiyasamy
Copy link
Copy Markdown
Member

/testwith openshift/ovn-kubernetes/master/e2e-metal-ipi-ovn-dualstack-bgp-local-gw-techpreview-frr-next openshift/ovn-kubernetes#2975 openshift/cluster-network-operator#2945
/testwith openshift/ovn-kubernetes/master/e2e-metal-ipi-ovn-dualstack-bgp-local-gw openshift/ovn-kubernetes#2975 openshift/cluster-network-operator#2945

// cleanup the VRF-Lite configuration
defer func() {
o.Expect(func() error {
if g.CurrentSpecReport().Failed() {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see both L3 and L2 VRF being tested in the same test, so we may not collect debug logs for one of it when it fails.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just ignore me, both are invoked with g.By, so it wouldn't proceed with 2nd one when first one fails.

@pperiyasamy
Copy link
Copy Markdown
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 17, 2026
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 17, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jcaamano, pperiyasamy

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jcaamano
Copy link
Copy Markdown
Contributor Author

/retitle NO-JIRA: OVNK BGP: improve debug and increase NNCP timeout for VRF-Lite test case

@jcaamano
Copy link
Copy Markdown
Contributor Author

/verified by CI

@openshift-ci openshift-ci bot changed the title OVNK BGP: improve debug and increase NNCP timeout for VRF-Lite test case NO-JIRA: OVNK BGP: improve debug and increase NNCP timeout for VRF-Lite test case Apr 17, 2026
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Apr 17, 2026
@openshift-ci-robot
Copy link
Copy Markdown

@jcaamano: This pull request explicitly references no jira issue.

Details

In response to this:

Summary by CodeRabbit

  • Bug Fixes

  • Prevented redundant debug data collection during test failures to improve reliability.

  • Improved labeling of network configuration debug output for clearer diagnostics.

  • Chores

  • Increased timeout for network configuration application to reduce flakiness.

  • Simplified internal test helpers to streamline test maintenance.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Apr 17, 2026
@openshift-ci-robot
Copy link
Copy Markdown

@jcaamano: This PR has been marked as verified by CI.

Details

In response to this:

/verified by CI

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@jcaamano
Copy link
Copy Markdown
Contributor Author

/retest-required

@neisw
Copy link
Copy Markdown
Contributor

neisw commented Apr 17, 2026

/override ci/prow/e2e-vsphere-ovn-upi

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 17, 2026

@neisw: Overrode contexts on behalf of neisw: ci/prow/e2e-vsphere-ovn-upi

Details

In response to this:

/override ci/prow/e2e-vsphere-ovn-upi

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-merge-bot openshift-merge-bot bot merged commit 104e20a into openshift:main Apr 17, 2026
21 of 25 checks passed
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 17, 2026

@jcaamano: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-metal-ipi-ovn-dualstack-bgp-local-gw be137c5 link false /test e2e-metal-ipi-ovn-dualstack-bgp-local-gw

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants